import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const InitData = itf({
    payload: itf({
        isDealerUser: 'boolean',
        dealerType: 'number? | null',
    })
});

export const List = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            rowVersion: 'string',
            options: ['string']
        })],
        totalElements: 'number'
    })
});

export const Detail = itf({
    payload: itf(
        {
            id: 'string',
            rowVersion: 'string',
            options: ['string'],
            attachments: [itf({
                fileId: 'string',
                fileName: 'string'
            })],
            details: [
                itf({
                    id: 'string',
                    attachments: [itf({
                        fileId: 'string',
                        fileName: 'string'
                    })],
                
                    
                })
            ],
        },
        
    )
});

export const VehicleSold = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
            })
        ],
        totalElements: 'number'
    })
});
export const FaultItem = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
            })
        ],
    })
});
export const ProductCategory = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
            })
        ],
    })
});
export const DutyUnit = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
            })
        ],
    })
});

export const Brands = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
            })
        ],
    })
});
